home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
pet_1112.swf
/
scripts
/
DefineSprite_577_youDone
/
frame_9
/
DoAction.as
Wrap
Text File
|
2009-04-14
|
980b
|
41 lines
function animateOut()
{
setTimeout(function()
{
thisClip.removeMovieClip();
}
,1000);
done_mc.wobbleOut(0.2);
bg_mc.wobbleOut(0.3);
caurina.transitions.Tweener.addTween(yesBtn_mc,{_alpha:0,time:0.5});
caurina.transitions.Tweener.addTween(noBtn_mc,{_alpha:0,time:0.5});
}
var thisClip = this;
noBtn_mc.onClick = function()
{
if(_root.theGames_mc.matchGame_mc.nextMatchNum != -1 && !_root.theGames_mc.matchGame_mc.mix_game_reward)
{
_root.theGames_mc.matchGame_mc.nextMatch();
}
animateOut();
};
rect_mc.onRelease = function()
{
};
rect_mc.useHandCursor = false;
yesBtn_mc.onClick = function()
{
_root.theGames_mc.matchGame_mc.mix_game_reward.out();
if(!_root.theGames_mc.matchGame_mc.mix_game_reward)
{
_root.theGames_mc.resetGames();
}
else
{
setTimeout(_root.theGames_mc.resetGames,2000);
}
animateOut();
};
noBtn_mc.play();
sounds.JOE_BMMDU_027.start();